<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh" lang="zh">
<head>
<title>[Register] My Life, My believe, My absolute self - Nibiru.Era</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<link rel="stylesheet" type="text/css" href="/static/css/style_manage.css" media="screen" />
</head>
<body>
{% include "manage/header.html" %}
<div id="content">
		
	<div class="left_l">
		<div class="box">
			<h2>Login</h2>
			<form id="f" name="f" action="/manage/login/" method="post">
				<table cellspacing="10px;">
					<tr>
						<td>LoginName: </td><td><input class="form_text" type="text" id="loginName" name="loginName" value="" /></td>
					</tr>
					<tr>
						<td>Password: </td><td><input class="form_text" type="password" id="password" name="password" value="" />
					</tr>
					<tr><td colspan="2"><input class="form_btn" type="button" value="Login" onclick="submitData();"/></td></tr>
					<tr><td colspan="2">[ <a style="text-decoration:underline;" href="/manage/register/">Create a new account.</a> ]</td></tr>
				</table>
			</form>
		</div>
	</div>
	
</div>
<script type="text/javascript">
	function submitData(){
		var loginName=document.getElementById('loginName');
		var password=document.getElementById('password');
		if(loginName==''){
			alert("LoginName can't be empty.");
			return false;
		}
		if(password==''){
			alert("Password can't be empty.");
			return false;
		}
		document.getElementById('f').submit();
	}
</script>
</body>
</html>